package com.tiger.weixin.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author: spzhang
 * @Date: Created in 9:10 2023/2/22
 * @Description:
 * @Version:
 */
@Data
@Component
@ConfigurationProperties(prefix = "wx")
public class WxProperties {
    private AccessToken accessToken;

    private Url url;

    private MsgTemp msgTemp;


    @Data
    public static class AccessToken{
        private String url;
        private String grantType;
        private String appid;
        private String secret;
    }

    @Data
    public static class Url {
        private String sendTempMsg;
        private String userAuthorized;
    }

    @Data
    public static class MsgTemp {
        private String tempId;
    }
}
